<template>
  <div>
    <h1>作业1</h1>
    <ul>
      <li v-for="(item, index) in zhiyin" :key="index">{{ item }}</li>
    </ul>
    <button @click="reverse">点击翻转</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      zhiyin: ['kun', 'kunkun', 'xikun', 'xiaokun'],
    }
  },
  methods: {
    reverse() {
      this.zhiyin.reverse()
    },
  },
}
</script>

<style></style>
